package com.jslx.pojo;

import java.util.ArrayList;
import java.util.List;

public class UserInviteInfoQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public UserInviteInfoQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidIsNull() {
            addCriterion("invitePersonId is null");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidIsNotNull() {
            addCriterion("invitePersonId is not null");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidEqualTo(String value) {
            addCriterion("invitePersonId =", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidNotEqualTo(String value) {
            addCriterion("invitePersonId <>", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidGreaterThan(String value) {
            addCriterion("invitePersonId >", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidGreaterThanOrEqualTo(String value) {
            addCriterion("invitePersonId >=", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidLessThan(String value) {
            addCriterion("invitePersonId <", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidLessThanOrEqualTo(String value) {
            addCriterion("invitePersonId <=", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidLike(String value) {
            addCriterion("invitePersonId like", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidNotLike(String value) {
            addCriterion("invitePersonId not like", value, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidIn(List<String> values) {
            addCriterion("invitePersonId in", values, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidNotIn(List<String> values) {
            addCriterion("invitePersonId not in", values, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidBetween(String value1, String value2) {
            addCriterion("invitePersonId between", value1, value2, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andInvitepersonidNotBetween(String value1, String value2) {
            addCriterion("invitePersonId not between", value1, value2, "invitepersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidIsNull() {
            addCriterion("beInvitedPersonId is null");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidIsNotNull() {
            addCriterion("beInvitedPersonId is not null");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidEqualTo(String value) {
            addCriterion("beInvitedPersonId =", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidNotEqualTo(String value) {
            addCriterion("beInvitedPersonId <>", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidGreaterThan(String value) {
            addCriterion("beInvitedPersonId >", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidGreaterThanOrEqualTo(String value) {
            addCriterion("beInvitedPersonId >=", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidLessThan(String value) {
            addCriterion("beInvitedPersonId <", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidLessThanOrEqualTo(String value) {
            addCriterion("beInvitedPersonId <=", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidLike(String value) {
            addCriterion("beInvitedPersonId like", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidNotLike(String value) {
            addCriterion("beInvitedPersonId not like", value, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidIn(List<String> values) {
            addCriterion("beInvitedPersonId in", values, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidNotIn(List<String> values) {
            addCriterion("beInvitedPersonId not in", values, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidBetween(String value1, String value2) {
            addCriterion("beInvitedPersonId between", value1, value2, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andBeinvitedpersonidNotBetween(String value1, String value2) {
            addCriterion("beInvitedPersonId not between", value1, value2, "beinvitedpersonid");
            return (Criteria) this;
        }

        public Criteria andOperatetypeIsNull() {
            addCriterion("operateType is null");
            return (Criteria) this;
        }

        public Criteria andOperatetypeIsNotNull() {
            addCriterion("operateType is not null");
            return (Criteria) this;
        }

        public Criteria andOperatetypeEqualTo(Boolean value) {
            addCriterion("operateType =", value, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeNotEqualTo(Boolean value) {
            addCriterion("operateType <>", value, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeGreaterThan(Boolean value) {
            addCriterion("operateType >", value, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeGreaterThanOrEqualTo(Boolean value) {
            addCriterion("operateType >=", value, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeLessThan(Boolean value) {
            addCriterion("operateType <", value, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeLessThanOrEqualTo(Boolean value) {
            addCriterion("operateType <=", value, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeIn(List<Boolean> values) {
            addCriterion("operateType in", values, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeNotIn(List<Boolean> values) {
            addCriterion("operateType not in", values, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeBetween(Boolean value1, Boolean value2) {
            addCriterion("operateType between", value1, value2, "operatetype");
            return (Criteria) this;
        }

        public Criteria andOperatetypeNotBetween(Boolean value1, Boolean value2) {
            addCriterion("operateType not between", value1, value2, "operatetype");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Boolean value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Boolean value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Boolean value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Boolean value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Boolean value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Boolean value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Boolean> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Boolean> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Boolean value1, Boolean value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Boolean value1, Boolean value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andCreationdateIsNull() {
            addCriterion("creationDate is null");
            return (Criteria) this;
        }

        public Criteria andCreationdateIsNotNull() {
            addCriterion("creationDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreationdateEqualTo(Long value) {
            addCriterion("creationDate =", value, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateNotEqualTo(Long value) {
            addCriterion("creationDate <>", value, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateGreaterThan(Long value) {
            addCriterion("creationDate >", value, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateGreaterThanOrEqualTo(Long value) {
            addCriterion("creationDate >=", value, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateLessThan(Long value) {
            addCriterion("creationDate <", value, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateLessThanOrEqualTo(Long value) {
            addCriterion("creationDate <=", value, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateIn(List<Long> values) {
            addCriterion("creationDate in", values, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateNotIn(List<Long> values) {
            addCriterion("creationDate not in", values, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateBetween(Long value1, Long value2) {
            addCriterion("creationDate between", value1, value2, "creationdate");
            return (Criteria) this;
        }

        public Criteria andCreationdateNotBetween(Long value1, Long value2) {
            addCriterion("creationDate not between", value1, value2, "creationdate");
            return (Criteria) this;
        }

        public Criteria andPaypriceIsNull() {
            addCriterion("payPrice is null");
            return (Criteria) this;
        }

        public Criteria andPaypriceIsNotNull() {
            addCriterion("payPrice is not null");
            return (Criteria) this;
        }

        public Criteria andPaypriceEqualTo(String value) {
            addCriterion("payPrice =", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceNotEqualTo(String value) {
            addCriterion("payPrice <>", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceGreaterThan(String value) {
            addCriterion("payPrice >", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceGreaterThanOrEqualTo(String value) {
            addCriterion("payPrice >=", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceLessThan(String value) {
            addCriterion("payPrice <", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceLessThanOrEqualTo(String value) {
            addCriterion("payPrice <=", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceLike(String value) {
            addCriterion("payPrice like", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceNotLike(String value) {
            addCriterion("payPrice not like", value, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceIn(List<String> values) {
            addCriterion("payPrice in", values, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceNotIn(List<String> values) {
            addCriterion("payPrice not in", values, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceBetween(String value1, String value2) {
            addCriterion("payPrice between", value1, value2, "payprice");
            return (Criteria) this;
        }

        public Criteria andPaypriceNotBetween(String value1, String value2) {
            addCriterion("payPrice not between", value1, value2, "payprice");
            return (Criteria) this;
        }

        public Criteria andRewardIsNull() {
            addCriterion("reward is null");
            return (Criteria) this;
        }

        public Criteria andRewardIsNotNull() {
            addCriterion("reward is not null");
            return (Criteria) this;
        }

        public Criteria andRewardEqualTo(String value) {
            addCriterion("reward =", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardNotEqualTo(String value) {
            addCriterion("reward <>", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardGreaterThan(String value) {
            addCriterion("reward >", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardGreaterThanOrEqualTo(String value) {
            addCriterion("reward >=", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardLessThan(String value) {
            addCriterion("reward <", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardLessThanOrEqualTo(String value) {
            addCriterion("reward <=", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardLike(String value) {
            addCriterion("reward like", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardNotLike(String value) {
            addCriterion("reward not like", value, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardIn(List<String> values) {
            addCriterion("reward in", values, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardNotIn(List<String> values) {
            addCriterion("reward not in", values, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardBetween(String value1, String value2) {
            addCriterion("reward between", value1, value2, "reward");
            return (Criteria) this;
        }

        public Criteria andRewardNotBetween(String value1, String value2) {
            addCriterion("reward not between", value1, value2, "reward");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}